package com.dtw.ditouwang.beans;

import android.os.Parcel;
import android.os.Parcelable;

public class UserBean {

    private String flag;
    private String msg;
    private boolean result;
    private DataBean data;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {

        private int id;
        private String username;
        private String password;
        private String nickname;
        private String sex;
        private String birthdate;
        private String name;
        private String stature;
        private String hobby;
        private String constellation;
        private String address;
        private String age;
        private String wx_id;
        private String wx_nickname;
        private String qq_id;
        private String qq_nickname;
        private String background;
        private String head;
        private String gold;
        private String power;
        private int logintype;
        private String code;
        private String user_code;

        protected DataBean(Parcel in) {
            id = in.readInt();
            username = in.readString();
            password = in.readString();
            nickname = in.readString();
            sex = in.readString();
            birthdate = in.readString();
            name = in.readString();
            stature = in.readString();
            hobby = in.readString();
            constellation = in.readString();
            address = in.readString();
            age = in.readString();
            wx_id = in.readString();
            wx_nickname = in.readString();
            qq_id = in.readString();
            qq_nickname = in.readString();
            background = in.readString();
            head = in.readString();
            gold = in.readString();
            power = in.readString();
            logintype = in.readInt();
            code = in.readString();
            user_code = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(id);
            dest.writeString(username);
            dest.writeString(password);
            dest.writeString(nickname);
            dest.writeString(sex);
            dest.writeString(birthdate);
            dest.writeString(name);
            dest.writeString(stature);
            dest.writeString(hobby);
            dest.writeString(constellation);
            dest.writeString(address);
            dest.writeString(age);
            dest.writeString(wx_id);
            dest.writeString(wx_nickname);
            dest.writeString(qq_id);
            dest.writeString(qq_nickname);
            dest.writeString(background);
            dest.writeString(head);
            dest.writeString(gold);
            dest.writeString(power);
            dest.writeInt(logintype);
            dest.writeString(code);
            dest.writeString(user_code);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getBirthdate() {
            return birthdate;
        }

        public void setBirthdate(String birthdate) {
            this.birthdate = birthdate;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStature() {
            return stature;
        }

        public void setStature(String stature) {
            this.stature = stature;
        }

        public String getHobby() {
            return hobby;
        }

        public void setHobby(String hobby) {
            this.hobby = hobby;
        }

        public String getConstellation() {
            return constellation;
        }

        public void setConstellation(String constellation) {
            this.constellation = constellation;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }

        public String getWx_id() {
            return wx_id;
        }

        public void setWx_id(String wx_id) {
            this.wx_id = wx_id;
        }

        public String getWx_nickname() {
            return wx_nickname;
        }

        public void setWx_nickname(String wx_nickname) {
            this.wx_nickname = wx_nickname;
        }

        public String getQq_id() {
            return qq_id;
        }

        public void setQq_id(String qq_id) {
            this.qq_id = qq_id;
        }

        public String getQq_nickname() {
            return qq_nickname;
        }

        public void setQq_nickname(String qq_nickname) {
            this.qq_nickname = qq_nickname;
        }

        public String getBackground() {
            return background;
        }

        public void setBackground(String background) {
            this.background = background;
        }

        public String getHead() {
            return head;
        }

        public void setHead(String head) {
            this.head = head;
        }

        public String getGold() {
            return gold;
        }

        public void setGold(String gold) {
            this.gold = gold;
        }

        public String getPower() {
            return power;
        }

        public void setPower(String power) {
            this.power = power;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getUser_code() {
            return user_code;
        }

        public void setUser_code(String user_code) {
            this.user_code = user_code;
        }

        public int getLogintype() {
            return logintype;
        }

        public void setLogintype(int logintype) {
            this.logintype = logintype;
        }

    }
}
